package org.gdpu.action;

import com.opensymphony.xwork2.ModelDriven;
import org.gdpu.service.TeamsService;
import org.gdpu.vo.TeamsVO;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * Created by HEWI2 on 1/13/14.
 */
@Component("teams")
@Scope("prototype")
public class TeamsAction extends MyActionSupport implements ModelDriven<TeamsVO> {

    private final TeamsVO teamsVO = new TeamsVO();
    private TeamsService teamsService;



    @Resource(name = "teamsServiceImpl")
    public void setTeamsServer(TeamsService teamsService) {
        this.teamsService = teamsService;
    }

    @Override
    public TeamsVO getModel() {
        return teamsVO;
    }
}
